router: improve RA PIO search logic
authorÁlvaro Fernández Rojas <noltari@gmail.com>
Fri, 28 Nov 2025 09:39:42 +0000 (10:39 +0100)
committerÁlvaro Fernández Rojas <noltari@gmail.com>
Tue, 2 Dec 2025 19:29:29 +0000 (20:29 +0100)
commitd970ae0ca4a32c017241bdf2b9ad41303cb6b7bf
tree024ae2e6584c27913ddfe10a66bbf83def33271c
parent63f040e88b122b6dcd17a8c48699de5169c863dd
router: improve RA PIO search logic

We need to properly handle when the user modifies the prefix length
assigned to an interface by:
- Checking if the prefix matches the address taking into account:
    - The biggest length of address and PIO.
    - A minimum PIO of /64.
- Updating addresses and lengths for existing PIOs.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
src/router.c